package com.cskaoyan.javase._0encapsulate._0introduction;

/**
 * Getter/Setter 方法的格式如果不做修改的话,是可以用快捷键生成的
 * Alt + Insert
 *
 * @since 16:04
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo2 {
}

class Teacher {
    private String name;
    private int age;
    private double salary;
    private String course;

    public Teacher() {
    }

    public Teacher(String name, int age, double salary, String course) {
        this.name = name;
        this.age = age;
        this.salary = salary;
        this.course = course;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }
}